<%@ page import="org.bjou.BranchCourse" %>



<div class="fieldcontain ${hasErrors(bean: branchCourseInstance, field: 'teacherName', 'error')} ">
	<label for="teacherName">
		<g:message code="branchCourse.teacherName.label" default="Teacher Name" />
		
	</label>
	<g:textField name="teacherName" value="${branchCourseInstance?.teacherName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: branchCourseInstance, field: 'teacherTitle', 'error')} ">
	<label for="teacherTitle">
		<g:message code="branchCourse.teacherTitle.label" default="Teacher Title" />
		
	</label>
	<g:textField name="teacherTitle" value="${branchCourseInstance?.teacherTitle}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: branchCourseInstance, field: 'teacherTel', 'error')} ">
	<label for="teacherTel">
		<g:message code="branchCourse.teacherTel.label" default="Teacher Tel" />
		
	</label>
	<g:textField name="teacherTel" value="${branchCourseInstance?.teacherTel}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: branchCourseInstance, field: 'currentTerm', 'error')} ">
	<label for="currentTerm">
		<g:message code="branchCourse.currentTerm.label" default="Current Term" />
		
	</label>
	<g:textField name="currentTerm" value="${branchCourseInstance?.currentTerm}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: branchCourseInstance, field: 'branch', 'error')} required">
	<label for="branch">
		<g:message code="branchCourse.branch.label" default="Branch" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="branch" name="branch.id" from="${org.bjou.Branch.list()}" optionKey="id" required="" value="${branchCourseInstance?.branch?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: branchCourseInstance, field: 'course', 'error')} required">
	<label for="course">
		<g:message code="branchCourse.course.label" default="Course" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="course" name="course.id" from="${org.bjou.Course.list()}" optionKey="id" required="" value="${branchCourseInstance?.course?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: branchCourseInstance, field: 'status', 'error')} required">
	<label for="status">
		<g:message code="branchCourse.status.label" default="Status" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="status" required="" value="${fieldValue(bean: branchCourseInstance, field: 'status')}"/>
</div>

